<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="mydiv"></div>
    <input type="button" name="" id="hellobtn" value="提交">
    <script>
        window.onload = () => {
            document.getElementById("hellobtn").onclick = function () {
                // console.log("ajax");
               let xhr= new XMLHttpRequest();
               xhr.onreadystatechange=()=>{
                console.log("hajhjsjk");

               }
            }
        }

    </script>


</body>

</html>